import request from '@/utils/request'


// 获取门店
export function getStore(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}

// 获取商品列表
export function goods_list(data,page) {
    return request({
        url: '/Wx_welfare/get_coupons_list/'+(page?page:1),
        method: 'post',
        data: data
    })
}

// 列表商品分页
export function goods_page(data) {
    return request({
        url: '/Wx_welfare/get_coupons_list_page',
        method: 'post',
        data: data
    })
}


// 获取方案列表
export function getInfo(data,page) {
    return request({
        url: '/Wx_sign_in_management/sign_in_plan_list/'+(page?page:1),
        method: 'post',
        data: data
    })
}

// 列表方案分页
export function getInfoPage(data) {
    return request({
        url: '/Wx_sign_in_management/sign_in_plan_page',
        method: 'post',
        data: data
    })
}

// 新建方案保存
export function signSave(data) {
    return request({
        url: '/Wx_sign_in_management/sign_in_plan_create',
        method: 'post',
        data: data
    })
}

// 方案启用
export function signEnable(data) {
    return request({
        url: '/Wx_sign_in_management/sign_in_plan_enable',
        method: 'post',
        data: data
    })
}

// 方案详情
export function signDetails(data) {
    return request({
        url: '/Wx_sign_in_management/sign_in_plan_info',
        method: 'post',
        data: data
    })
}
